﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CostCenterPathSetup.aspx.cs" Inherits="Hisun.View.CostCenterPath.CostCenterPathSetup" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
     <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">作业中心分配路径设置</div></div>
    <div class ="CommonPage_Body">

        <table style="width: 100%;">
            <tr>
                <td colspan="2">
                
                </td>
                <td colspan="2">
                    <asp:Button SkinID = "Button" ID="Button_Auto" runat="server" oncommand="Button_Auto_Command" 
                        Text="自动建立" Visible="False" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Label ID="Label3" runat="server" Text="过滤条件：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_NameFilter" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" 
                        onclick="Button_Query_Click" Text="查询" /></td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel ID="Panel_QueryCenterlist" runat="server">
                     <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" OnClick="MyClick">&lt;&lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" OnClick="MyClick"> &lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" OnClick="MyClick">&gt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" OnClick="MyClick"> &gt;&gt;</asp:LinkButton>
                    <asp:Label ID="Label_Total" runat="server" Text="共：" SkinID="Label"></asp:Label>
                    <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到" 
                        SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" Text="页"></asp:Label>
                    <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" ControlToValidate="TextBox_PageIndex"
                        ErrorMessage="*" MaximumValue="10000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                    <asp:Button SkinID = "Button" ID="Button_PageGo" runat="server" CommandArgument="GotoPage" OnClick="MyClick"
                        Text="GO" />
                        <asp:GridView ID="GridView_CostCenter" runat="server" 
    SkinID ="GridView"  AutoGenerateColumns="False">
                            <Columns>
                                <asp:BoundField DataField="作业中心ID" HeaderText="作业中心ID" ReadOnly="True" 
                                SortExpression="作业中心ID" />
                                <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" ReadOnly="True" 
                                SortExpression="作业中心名称" />
                                <asp:BoundField DataField="作业中心描述" HeaderText="作业中心描述" ReadOnly="True" 
                                SortExpression="作业中心描述" />
                                <asp:BoundField DataField="部门ID" HeaderText="部门ID" ReadOnly="True" 
                                SortExpression="部门ID" />
                                <asp:TemplateField HeaderText="分配路径管理">
                                    <ItemTemplate>
                                        <asp:Button SkinID = "Button" ID="Button_ShowPath" runat="server" Text="查看" CommandArgument='<%# Eval("作业中心ID") %>'
                                        OnCommand="Button_ShowPath_Command" />
                                        <asp:Button SkinID = "Button" ID="Button_EditPath" runat="server" Text="编辑" CommandArgument='<%# Eval("作业中心ID") %>'
                                        OnCommand="Button_EditPath_Command" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="4">
             
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="4" style="background-color: #C0C0C0">
             
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel ID="Panel_GoalCenterList" runat="server">
                           <asp:Label ID="Label_CostCenterId" runat="server" Text="成本分配目标作业中心列表：" 
                        SkinID="Label"></asp:Label>
                        <asp:GridView ID="GridView_Path" runat="server" 
    SkinID="GridView" AutoGenerateColumns="False">
                            <Columns>
                                <asp:BoundField DataField="作业中心ID" HeaderText="作业中心ID" />
                                <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" />
                                <asp:BoundField DataField="目标中心ID" HeaderText="目标作业中心ID" />
                                <asp:BoundField DataField="目标作业中心名称" HeaderText="目标中心名称" />
                                <asp:BoundField DataField="成本动因ID" HeaderText="成本动因ID" />
                                <asp:BoundField DataField="成本动因名称" HeaderText="成本动因名称" />
                            </Columns>
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                </td>
                <td colspan="2">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div></div>
    </form>
</body>
</html>
